package com.p900.website.web.admin;

import com.p900.website.service.AdvertisementService;
import com.p900.website.service.PlatformService;
import org.joda.time.DateTime;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by lenovo on 2015/5/6.
 */
@Controller("adminIndex")
@RequestMapping("/admin")
public class IndexController {

    @RequestMapping({"index",""})
    public String index(Model model){
        model.addAttribute("now", DateTime.now().toDate());
        return "admin/index";
    }
}
